<!doctype html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8" />
	<title>Holy Bolg</title>
	<link rel="stylesheet" href="assets/css/main.css">
	<link rel="stylesheet" href="assets/js/libs/fancybox/jquery.fancybox.css">
</head>

<body>
	<div class="main_wrap">
		<div class="header">
			<div class="header_inner cf">
				<div class="left ls">
					<div class="logo"><img src="assets/images/blank.gif" /></div>
				</div>
				<div class="right rs">
					<div class="headerinfo"><img src="assets/images/blank.gif" /></div>
				</div>
			</div>
		</div>
		<div class="main">
			<div class="main_inner">
				<div class="mside main_left">left side</div>
				<div class="mcontent main_center"></div>
				<div class="mside main_right"></div>
			</div>
		</div>
		<div class="footer">
			<div class="footer_inner cf">
				<div class="footerinfo"><img src="assets/images/blank.gif" /></div>
			</div>
		</div>
	</div>
<?php
include_once('setting.php' );
include_once('medoo.php');

$link = mysql_connect('localhost', 'holyhu_data', 'ki33520') or die('数据库连接失败');
mysql_select_db('holyhu_data');
mysql_query("set names 'utf8'");
if(mysql_query('select * from user')){
echo('成功');
}else{
echo('失败');
};

$database = new_meddo();
$datas = $database->select("user", "name",[
	"id" => $database->select("test1", "id",["comments[>]" => 10])
]);
foreach($datas as $data){
	echo "name:" . $data . "<br/>";
}
?>
<script src="assets/js/seajs/sea.js"></script>
<script type="text/javascript">
    seajs.use('seajs/shunt.js',function(r){
    	seajs.use('main');
    });
</script>
</body>
</html>